var server = require('../server')
var db = require('../../db/connect')
var jsonres = require('../../libs/jsonres')
var request = require('request');
var config = require('../../config')
var Async = require('async');

server.get('/api/getallround',function(req, res) {
    var taskid = req.query.taskid
    db.find('tasks',{taskId: taskid},function(err, result) {
        console.log(result.rounds)
    })
})

server.get('/api/getrounddata',function(req, res) {
    var roundid = req.query.roundid
    db.find('matchdatas',{roundid: roundid},function(err, result) {
        console.log(result.rounds)
    })
})
